package com.xncoding.pos.service.impl;

import com.xncoding.pos.service.MessageService;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Service;

@Service
@ConditionalOnProperty(prefix="config",name = "channel", havingValue = "one")
public class MessageServiceOneImpl implements MessageService {

    @Override
    public String getMessage() {

        return "配置文件是ONE";

    }
}
